#include <cusp/detail/device/spmm/csr.h>

namespace cusp {
namespace detail {
namespace device {

template <typename Matrix1,
          typename Matrix2,
          typename Matrix3,
          typename Matrix4>
void spmmm_csr(const Matrix1 &A,
               const Matrix2 &B,
               const Matrix3 &C,
                     Matrix4 &D)
{
  Matrix4 temp;
  cusp::detail::device::spmm_csr(A,B,temp);
  cusp::detail::device::spmm_csr(temp,C,D);
}

} // end namespace device
} // end namespace detail
} // end namespace cusp
